var origin = window.location.origin;
var hostUrl = '';
var baseUrl = '';
// 'http://localhost:8080'
if (origin.indexOf('localhost') > -1) { //本地调取测试环境
    hostUrl = 'https://cloud.supply.sxruanjian.cn/api';
    baseUrl = 'https://cloud.supply.sxruanjian.cn'
} else {
    hostUrl = `${origin}/api`;
    baseUrl = origin;
}
const urlObj = {
    hostUrl,
    baseUrl,
}
export default urlObj